# from pathlib import Path
import pytest
# from common.ini_operate import IniOperate
# from common.common_config import CONFIG_PATH
# from common.excel_operate import ExcelOperate
from common.log import logger
from business.sql_process import SqlProcess
from common.common_config import db_name_case, db_username, db_password, db_ip, db_port


@pytest.fixture(scope="session", name="sql_instance")
def data_prepare():
    sql_instance = SqlProcess(db_ip=db_ip, db_name_case=db_name_case, db_username=db_username, db_password=db_password,
                              db_port=db_port)
    yield sql_instance
    del sql_instance
